<script>
	import { onMount } from 'svelte';

	import { init, animation, onWindowResize } from '$lib/webgl/ts/test';
	let el;
	onMount(() => {
		// if (!Detector.webgl) Detector.addGetWebGLMessage()
		init(el);
		animation();
		// window.onresize = onWindowResize;
	});
</script>

<svelte:window on:resize={onWindowResize} />

<canvas bind:this={el} />
